package FactoryMethod;

public abstract class AbstractProduct {
    public void publicFunction(){
        System.out.println("abstract function");
    }
    public abstract void concreteFunction();
}

class productionA extends AbstractProduct{
    @Override
    public void concreteFunction() {
        System.out.println("production A");
    }
}

class productionB extends AbstractProduct{
    @Override
    public void concreteFunction() {
        System.out.println("production B");
    }
}